﻿using System.ComponentModel.DataAnnotations.Schema;
using WareHouseManagement.Data;

namespace WareHouseManagement.ModelEntity
{
    [Table("AG2Warehouse_Entity")]
    public class AG2Warehouse_Entity
    {
        public int id { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public int Devid { get; set; }
        public int Station { get; set; }
        public int PreStation { get; set; }
        public int BackStation { get; set; }
        /// <summary>
        /// 出库取料
        /// </summary>
        public int TaskTypeGet { get; set; }
        /// <summary>
        /// 入库放料
        /// </summary>
        public int TaskTypePut { get; set; }
        public int Flow { get; set; }

        public bool Isenable { get; set; }
        public bool ISHave { get; set; }

        public bool IsCreat { get; set; }
        public string Remark { get; set; }
        public string Task_NO { get; set; }
        public string Code { get; set; }
        public string Lot { get; set; }
        public string TASK_Diam { get; set; }
        public string TASK_Diam_SIZE { get; set; }
        public string TASK_WIDTH { get; set; }
        public string TASK_SIZE { get; set; }
        public string UpdTime { get; set; }
        
        public float GetHeight { get; set; }
        public float PutHeight { get; set; }

        public int GetArea { get; set; }

        public int PutArea { get; set; }
        /// <summary>
        /// 层
        /// </summary>
        public int Storey { get; set; }

        /// <summary>
        /// 1为1号线大库位，2为2号线小库位，其他都为异常处理
        /// </summary>
        public int Type { get; set; }
        //物料类型
        public int MaterialName { get; set; }
        public AG2Warehouse_Entity Clone()
        {
            return new AG2Warehouse_Entity()
            {
                id=this.id,
                Devid = this.Devid,
                Station = this.Station,
                PreStation = this.PreStation,
                BackStation = this.BackStation,
                TaskTypeGet = this.TaskTypeGet,
                TaskTypePut = this.TaskTypePut,
                Flow = this.Flow,
                Isenable = this.Isenable,
                ISHave = this.ISHave,
                IsCreat = this.IsCreat,
                UpdTime = this.UpdTime,
                Task_NO = this.Task_NO,
                Code = this.Code,
                Lot = this.Lot,
                TASK_Diam = this.TASK_Diam,
                TASK_Diam_SIZE = this.TASK_Diam_SIZE,
                TASK_WIDTH = this.TASK_WIDTH,
                TASK_SIZE = this.TASK_SIZE,
                Remark = this.Remark,
                GetHeight = this.GetHeight,
                PutHeight = this.PutHeight,
                GetArea = this.GetArea,
                PutArea = this.PutArea,
                Storey = this.Storey,
                Type = this.Type,
                MaterialName=this.MaterialName

            };
        }
    }
}
